FROM node:20.16.0


WORKDIR /app

COPY package.json ./

RUN npm install

COPY . .

RUN npx prisma generate
RUN npx prisma db push

EXPOSE 14525

CMD ["npm","run", "start"]